package com.avamstudios;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

public class Client {
	public static void main(String[] args){
		//Resource res = new FileSystemResource("/src/deneme1Context.xml");
		System.out.println("a");
		ApplicationContext context = new ClassPathXmlApplicationContext("deneme1Context.xml");
		System.out.println("b");
		for(int i=0; i<20; i++)
			context.getBean("messanger", Messanger.class);		
		System.out.println("c");
		System.out.println(context.getBean("messanger", Messanger.class).echo("deneme"));
	}
}
